﻿using Cmp.Web.Common;
using Cmp.Web.IRepository;
using Cmp.Web.IService;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.Service
{
    public class PaymentService : IPaymentService
    {
        private readonly IPaymentProvide provide;
        public PaymentService(IPaymentProvide paymentProvide)
        {
            provide = paymentProvide;
        }
        public Task<List<OutPayInfo>> GetOutPayInfoList(string PatientId, string PayState, out ExceptionAll exception)
        {
            return provide.GetOutPayInfoList(PatientId, PayState, out exception);
        }

        public Task<bool> OutPayConfirm(OutPayInfo outPay, out ExceptionAll exception)
        {
            return provide.OutPayConfirm(outPay, out exception);
        }

        public Task<string> OutPayPre(OutPayInfo outPay, out ExceptionAll exception)
        {
            return provide.OutPayPre(outPay,out exception);
        }
    }
}
